//
//  TodayNews.swift
//  TodayNews
//
//  Created by monkey on 2020/2/3.
//  Copyright © 2020 itcast. All rights reserved.
//

import UIKit

func XGPrint(_ item: Any, file: String = #file, funcName: String = #function, lineNum : Int = #line)
{
    #if DEBUG
    let fileName = (file as NSString).lastPathComponent
//    print(fileName + "--->" + funcName + "--->" + lineNum + "--->" + "\(item)")
    print(fileName + "--->" + funcName + "--->" + "\(lineNum)" + "--->" + "\(item)")
    #endif
}

// MARK: - UI相关

/// 屏幕宽度
let TodayNews_Screen_Width: CGFloat = UIScreen.main.bounds.width
/// 屏幕高度
let TodayNews_Screen_Height: CGFloat = UIScreen.main.bounds.height
/// 缩放比例
let TodayNews_Screen_Scale: CGFloat = UIScreen.main.scale
/// 状态栏高度
let TodayNews_StatusBar_Height: CGFloat = UIApplication.shared.statusBarFrame.height
/// 导航栏高度
let TodayNews_NavigationBar_Height: CGFloat = 44.0 + TodayNews_StatusBar_Height
/// 是否是iphoneX
let TodayNews_is_IphoneX: Bool = TodayNews_StatusBar_Height > 20
/// 底部间距
let TodayNews_Bottom_Margin: CGFloat = TodayNews_is_IphoneX ? 34.0 : 0.0
/// tabBar高度
let TodayNews_TabBar_Height: CGFloat = 49.0 + TodayNews_Bottom_Margin
